/* ==================================================
   RESSOURCES (page ressources.html)
================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #172033;
    background-color: #f5f8fc;
}

/* ---------- 1. Bannière ---------- */

.ressources_banniere {
    padding: 55px 7% 50px;
    text-align: center;
    background: linear-gradient(135deg, #102d55 0%, #176b38 100%);
    color: #ffffff;
}

.ressources_surtitre {
    margin-bottom: 10px;
    color: #a8e6b7;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.ressources_banniere h1 {
    margin-bottom: 14px;
    font-size: clamp(30px, 4.5vw, 46px);
    line-height: 1.2;
}

.ressources_banniere > p {
    max-width: 620px;
    margin: 0 auto;
    color: #e1e9f3;
    line-height: 1.8;
}

/* ---------- 2. Onglets (liens vers les deux sections) ---------- */

.ressources_onglets {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 26px 5% 0;
}

.ressources_onglets a {
    padding: 10px 22px;

    background-color: #ffffff;
    border: 2px solid #dbe4ee;
    border-radius: 50px;

    color: #102d55;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;

    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ressources_onglets a:hover {
    background-color: #176b38;
    border-color: #176b38;
    color: #ffffff;
}

/* ---------- 3. Sections ---------- */

.ressources_section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 5% 20px;
    scroll-margin-top: 10px;
}

.ressources_section > h2 {
    margin-bottom: 6px;
    color: #102d55;
    font-size: 26px;
}

.ressources_section > .ressources_sous_titre {
    margin-bottom: 22px;
    color: #687386;
    font-size: 15px;
}

.ressources_liste {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* ---------- 4. Cartes ---------- */

.ressource {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 24px 22px;

    background-color: #ffffff;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(20, 45, 80, 0.05);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ressource:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20, 45, 80, 0.10);
}

.ressource_icone {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;
    margin-bottom: 14px;

    background-color: #eaf5ed;
    border-radius: 10px;

    font-size: 24px;
}

.ressource h3 {
    margin-bottom: 8px;
    color: #102d55;
    font-size: 17px;
    line-height: 1.4;
}

.ressource > p {
    margin-bottom: 14px;
    color: #687386;
    font-size: 14px;
    line-height: 1.7;
}

.ressource_infos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 16px;

    color: #647084;
    font-size: 13px;
}

.ressource_infos a {
    color: #176b38;
    font-weight: bold;
    text-decoration: none;
}

.ressource_infos a:hover {
    color: #0c4825;
}

.ressource_bouton {
    margin-top: auto;
    padding: 10px 18px;

    background-color: #176b38;
    border-radius: 6px;

    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;

    transition: background-color 0.3s ease;
}

.ressource_bouton:hover {
    background-color: #10542b;
}

/* ---------- 5. Quand il n'y a encore rien ---------- */

.ressources_vide {
    grid-column: 1 / -1;

    padding: 38px 24px;
    text-align: center;

    background-color: #ffffff;
    border: 2px dashed #cfdbe8;
    border-radius: 14px;
}

.ressources_vide_icone {
    margin-bottom: 8px;
    font-size: 36px;
}

.ressources_vide h3 {
    margin-bottom: 8px;
    color: #102d55;
    font-size: 19px;
}

.ressources_vide p {
    max-width: 480px;
    margin: 0 auto 14px;
    color: #687386;
    font-size: 15px;
    line-height: 1.7;
}

.ressources_vide a {
    color: #176b38;
    font-weight: bold;
    text-decoration: none;
}

.ressources_vide a:hover {
    color: #0c4825;
}

.ressources_fin {
    height: 50px;
}

/* ---------- 6. Tablettes et téléphones ---------- */

@media screen and (max-width: 900px) {
    .ressources_liste {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 600px) {
    .ressources_banniere {
        padding: 40px 20px 38px;
    }

    .ressources_liste {
        grid-template-columns: 1fr;
    }
}
